From: Karl Heuer Date: Tue, 22 Mar 1994 01:41:10 +0000 (+0000) Subject: (jump-to-register): Handle dead marker. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~92599 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=8c4ca60c28453f0f1580f752405aaf33c77270cd;p=emacs.git (jump-to-register): Handle dead marker. --- diff --git a/lisp/register.el b/lisp/register.el index 76f05284c7b..451b6e01dc3 100644 --- a/lisp/register.el +++ b/lisp/register.el @@ -93,6 +93,8 @@ delete any existing frames that the frame configuration doesn't mention. ((window-configuration-p val) (set-window-configuration val)) ((markerp val) + (or (marker-buffer val) + (error "That register's buffer no longer exists")) (switch-to-buffer (marker-buffer val)) (goto-char val)) ((and (consp val) (eq (car val) 'file))